package com.enjoy;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

@Slf4j
public class XmlApplicationTest {

    @Test
    public void test() {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("factoryMethod.xml");
        for (String name : context.getBeanDefinitionNames()) {
            log.info("bean name:{}", name);
        }
    }
}
